package ch08;

class ExceptionEx07 {
	public static void main(String[] args) {
		try {
			throw new Exception(); //should be in try block.
		} catch (Exception e) {
			System.out.println("An exception occurred.");
		}
	}
}
/*
An exception occurred.
*/